API Documentation
Color.h
1 // Color.h
3 //
5 
6 namespace nkWinUi
7 {
11  class DLL_WINUI_EXPORT Color final
12  {
13  public :
14 
15  unsigned char _r ;
16  unsigned char _g ;
17  unsigned char _b ;
18 
19  public :
20 
24  Color () ;
32  Color (unsigned char red, unsigned char green, unsigned char blue) ;
36  ~Color () ;
37 
46  Color getAssociateColor (float factor = 1.5f) const ;
54  Color mix (const Color& other, float factor) const ;
61  Color getColorForDepth (unsigned int depth) const ;
62 
69  Color operator* (float factor) const ;
70  } ;
71 }
nkWinUi::Color::_b
unsigned char _b
The blue component of the color, [0, 255].
Definition: Color.h:17
nkWinUi::Color::_g
unsigned char _g
The green component of the color, [0, 255].
Definition: Color.h:16
nkWinUi::Color::Color
Color(unsigned char red, unsigned char green, unsigned char blue)
nkWinUi::Color::Color
Color()
nkWinUi::Color::getAssociateColor
Color getAssociateColor(float factor=1.5f) const
nkWinUi::Color::getColorForDepth
Color getColorForDepth(unsigned int depth) const
nkWinUi::Color::_r
unsigned char _r
The red component of the color, [0, 255].
Definition: Color.h:15
nkWinUi::Color
Represents a color.
Definition: Color.h:12
nkWinUi::Color::~Color
~Color()
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
nkWinUi::Color::mix
Color mix(const Color &other, float factor) const